|
|
|
| 11. Draw a DataGrid control on the form where the list box used to be. 12. Set the Name property to dgrdHealth. 13. Set the DataSource property to datHealth. 14. Set the AllowUpdate to False. |  | Using the DataGrid control is great when you need multiple columns of information to be displayed to the user. |
|
|
|
|
|
|
Now you need to assign columns to the grid. To do this, you need to select the (Custom) property to bring up the property pages that allow you to customize the columns. |
|
|
|
|
|
|
|
|
A property page is a customized view of the properties for a control. Property pages are typically used when you have repeating groups of information that you need to set as properties for a control. Using property pages is generally easier than using the simple Properties window in Visual Basic. In the Columns tab of the DataGrid control, you can input all the columns you want to set up for this grid (see Figure 14.6). |
|
|
|
|
|
|
|
|
Figure 14.6
The Columns tab in the property page for the DataGrid control. |
|
|
|
|
|